from pydub import AudioSegment
from pydub.utils import db_to_float
import argparse




parser=argparse.ArgumentParser()
parser.add_argument(
	'filename', help='a file name')
args=parser.parse_args()
file_name = args.filename


# Let's load up the audio we need...
audio_input = AudioSegment.from_mp3(file_name)


# save the result
output_file_name = 'output.wav' #str('aoutput' + '.wav')
audio_input.export(output_file_name, format="wav")

print 'File has been WAV ed'